<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="../template.xhtml">
	<ui:define name="conteudo">
		<f:metadata>
			<f:event type="preRenderView"
				listener="#{sessaoMBean.verificaSessao}">
			</f:event>
			<f:event type="preRenderView"
				listener="#{temp.criarChart}">
			</f:event>
		</f:metadata>
		<style type="text/css">
			.ui-panel, div.ui-state-hover {
				margin: 10px;
				width:240px;
			}
			
			.ui-dashboard-column {
				width:250px;
			}
		</style>

		<div style="width:90%;margin: auto; text-align: center">


     <h:form>  
          <p:poll interval="120" listener="#{temp.criarChart}"   update="formRelatorio3:grafico formRelatorio3:gridRelatorio3" /> 
     </h:form>    
 
	<h:form id="formRelatorio3">
		<h:panelGrid id="gridRelatorio3">
               <h:graphicImage value="../../resources/temp/#{temp.nomeArquivo}" id="grafico"/>  
		</h:panelGrid>
	</h:form>
</div>
<div style="clear:both" /> 
	</ui:define>

</ui:composition>
</html>